package org.e_gold.factory;

import javax.annotation.Resource;

import org.springframework.core.env.Environment;
import org.springframework.stereotype.Component;

@Component
public class AppProperties {

    @Resource
    private Environment env;

    public Float getRateMin() {

        return Float.parseFloat(env.getProperty("e_gold.rate_min"));
    }

    public Float getRateMax() {

        return Float.parseFloat(env.getProperty("e_gold.rate_max"));
    }
}
